package com.briup.ch08;

public class Card {
    private String color;
    private String number;
    private int weight;

    public Card() {
    }

    public Card(String color, String number, int weight) {
        this.color = color;
        this.number = number;
        this.weight = weight;
    }

    public int getWeight() {
        return weight;
    }

    @Override
    public String toString() {
        return color+number;
    }
}
